<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML >
<html lang="en">
<head>
<base href="<%=basePath%>">
<meta charset="UTF-8">
<title>密码修改.jsp</title>


<script type="text/javascript" src="han/js/jquery-1.8.3.js"></script>

<link rel="stylesheet" href="han/css/cal.css"  type="text/css" />
<script src="zgq/js/cal.js" type="text/javascript" charset="gbk"></script>



<style type="text/css">
	#head_1{margin-top: 10px;margin-left: 22px;}
	#head_1 ul li{float: left;font-size: 14px;}
	
	#table1 tr .td1{font-size: 14px;font-weight: bolder;vertical-align: top;}
	#table1 tr .td2 input{width: 189px;height: 25px;}
	#table1 tr .td3{font-size: 14px;}
	#buton{overflow: hidden;}
	#buton ul li{float:left;margin-right: 10px;}
</style>

<script type="text/javascript" src="han/js/jquery-1.8.3.js"></script>
<script type="text/javascript">
$(function(){
	$("#repwd").blur(function(){
		var newpwd=$(this).val();
		var repwd=$("#newpwd").val();
		if(newpwd!=repwd){
		$("#show").html("两次密码输入不一致，请重新输入！");
		newpwd.html("");
		repwd.html("");
		}else{
		$("#show").html("");
		}
		
	});
	
	$("#newpwd").blur(function(){
	
	var s=$(this).val();
	var tr=/^[0-9A-Za-z]{6,}$/;
	if(tr.test(s)){
	$(this).parent().next().html("");
	}else{
	$(this).parent().next().html("新密码不少于6个字符");
	}
	});
	
	$("#reset").click(function(){
		window.location.href="han/login.jsp";
	});
	
	
});

</script>
</head>

<body>
<form action="han/updatePwd" method="post">
	<div id=all
		style="width:1050px ;height: 2000px;background-color: #C9C9C9;margin: 0 auto;position:relative;top:30px;">
		<div id="header"
			style="width: 1030px; height:100px;position:absolute;left: 10px;top:0px;background-color:white;">
			<%@ include file="header.jsp"%>
		</div>
		<div id="left"
			style="height: 1000px;width: 200px; position:absolute;left: 10px;top:100px;background-color:white;">
			<%@ include file="left_pei1.jsp"%>
		</div>
		<div id="right"
			style="height: 1000px;width: 810px; ;position:absolute;left: 230px;top:100px;
			background-color:#F4F4F4;">
			<div id="h11" style="width:782px;">
           <div id="head_1">
           		<ul>
           			<li>我的工作平台</li>
           			<li>>></li>
           			<li><a href="han/updatePwd.jsp">修改密码</a></li>
           		</ul>
           </div>
           
           <div id="h1" style="width:792px;float:left;">
           <div style="width: 600px;margin: 0 auto;margin-top: 50px;">
           <h3 style="margin-left: 150px;color: red">${message}</h3>
        	<table id="table1" style="border: none;border-spacing: 15px;">
            	<tr>
                	<td class="td1">请输入旧密码：</td>
                    <td class="td2"><input id="pwd" type="password" name="users.pwd" value=""/></td>
                    <td class="td3"><span>&nbsp;*&nbsp;您本次登录时的密码</span></td>
                </tr>
            	<tr>
                	<td class="td1">请输入新密码：</td>
                    <td class="td2"><input id="newpwd" type="password" name="newpassword" value=""/></td>
                    <td class="td3" >
                    <span id="show" style="color: red"></span>&nbsp;*&nbsp;新密码不能少于6位字符</td>
                </tr>
            	<tr>
                	<td class="td1">请确认新密码：</td>
                    <td class="td2"><input id="repwd" type="password"  value=""/>
                    </td>
                    <td class="td3"> <span id="show" style="color: red"></span>&nbsp;*&nbsp;新密码不能少于6位字符</td>
                </tr>
           
            </table>
            <div style="width: 200px;margin-left:170px;margin-top: 5px;" id="buton">
            <ul>
	           <li><input id="sub" type="submit" name="submit" value="确认" style="width:60px;height: 24px"/></li>
	           <li><input type="reset" id="reset" value="取消" style="width:60px;height: 24px"/></li>
	       </ul>
           </div>
           
    </div>
	</div>	

	</div>
</div>
</div>
</form>
</body>
</html>
